package com.cxb.util;

import java.util.Date;
import java.util.List;

public class ListToTree {


    public static void main(String[] args) {
        Date date = new Date(1703692800000L);
        System.out.println(date);

    }

    private static void build(AttrOption attrOption,List<AttrOption> attrOptions){

        attrOptions.forEach(item ->{
            if(item.pid.equals(attrOption.id)){
                attrOption.childs.add(item);
                build(item,attrOptions);
            }
        });
    }

    static class AttrOption{

        private Integer id;
        private String value;
        private String title;
        private Integer pid;

        private List<AttrOption> childs;

//        //map <parentUnitId,AZDeptInfo>  当前数据的父亲节点集合
//        Map<String, List<AzDeptDataResponse.AzDeptInfo>> map = deptDataList.stream()
//                .collect(Collectors.groupingBy(AzDeptDataResponse.AzDeptInfo::getParentUnitID));
    }
}
